package com.itheima.day02;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo02 {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<String> abq=new ArrayBlockingQueue<>(2);
        abq.put("汉堡");
        abq.put("汉堡");
        System.out.println(abq.take());
        System.out.println(abq.take());
        System.out.println("结束了。。。。");
    }
}
